//-----------------------------------------------------------------------
// <copyright file="a_Email_PermissionService.cs" company="AACECOM">
//     Copyright (c) AACECOM. All rights reserved.
// </copyright>
//-----------------------------------------------------------------------

using System;
using System.Collections;
using ThoiTrang.Entities;
using ThoiTrang.Data;
    
namespace ThoiTrang.Business
{   
	/// <summary>
	/// 
	/// </summary> 
    public class a_Email_PermissionService
    {
        #region a_Email_Permission

        public static void Createa_Email_Permission(a_Email_Permission a_Email_Permission)
        {            
            try
            {
                a_Email_PermissionDAO a_Email_PermissionDAO = new a_Email_PermissionDAO();
                a_Email_PermissionDAO.Createa_Email_Permission(a_Email_Permission);
            }            
            catch (Exception ex)
            {                
                throw ex;
            }
        }        

        public static void Updatea_Email_Permission(a_Email_Permission a_Email_Permission)
        {            
            try
            {
                a_Email_PermissionDAO a_Email_PermissionDAO = new a_Email_PermissionDAO();
                a_Email_PermissionDAO.Updatea_Email_Permission(a_Email_Permission);
            }           
            catch (Exception ex)
            {
                throw ex;
            }
        }        

        public static void Deletea_Email_Permission(int userID, string mTmpType)
        {            
            try
            {
                a_Email_PermissionDAO a_Email_PermissionDAO = new a_Email_PermissionDAO();
                a_Email_PermissionDAO.Deletea_Email_Permission(userID, mTmpType);
            }            
            catch (Exception ex)
            {
                throw ex;
            }
        }
        
        public static a_Email_Permission Geta_Email_Permission(int userID, string mTmpType)
        {            
            try
            {
                a_Email_PermissionDAO a_Email_PermissionDAO = new a_Email_PermissionDAO();
                return a_Email_PermissionDAO.Geta_Email_Permission(userID, mTmpType);                
            }            
            catch (Exception ex)
            {
                throw ex;
            }
        }                

        public static a_Email_PermissionCollection Geta_Email_PermissionList(a_Email_PermissionColumns orderBy, OrderDirection orderDirection)
        {            
            try
            {
                a_Email_PermissionDAO a_Email_PermissionDAO = new a_Email_PermissionDAO();
                return a_Email_PermissionDAO.Geta_Email_PermissionList(orderBy, orderDirection);
            }            
            catch (Exception ex)
            {
               throw ex;
            }
        }        

        public static a_Email_PermissionCollection Geta_Email_PermissionList(a_Email_PermissionColumns orderBy, OrderDirection orderDirection, int page, int pageSize, out int totalRecords)
        {            
            try
            {
                a_Email_PermissionDAO a_Email_PermissionDAO = new a_Email_PermissionDAO();
                return a_Email_PermissionDAO.Geta_Email_PermissionList(orderBy, orderDirection, page, pageSize, out totalRecords);
            }            
            catch (Exception ex)
            {
                throw ex;
            }
        }        

        #endregion
    }
}